import {getNewBuildingInfoList } from "@/api/building"
export default{
 data(){
    return{  
        buildingList:[]
    }
 },
  methods:{
      //获取所有的楼盘列表  给selected用的
      getAllbuildingList(params,callBack){
        if(this.buildingList.length>0)return callBack && callBack(this.buildingList)
        getNewBuildingInfoList(params).then(res=>{
          console.log("楼盘列表",res)
          this.buildingList = res.list; 
        })
      }
  }
}